//
//  classListCollectionCell.m
//  doubleEduStudents
//
//  Created by 盛洋 on 2021/1/20.
//  Copyright © 2021 shengYang. All rights reserved.
//

#import "classListCollectionCell.h"

@implementation classListCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.title_lab.font = self.time_lab.font = self.status_lab.font = AutoLabFont2;
}
-(void)setModel:(CurriculumListModel *)model{
    _model = model;
    [self.icon_img sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.courseIcon]] placeholderImage:DefaultIcon];
    _title_lab.text = [NSString stringWithFormat:@"%@",model.categoryName];
    _time_lab.text = [NSString stringWithFormat:@"课程时长:%@",model.courseTime];
   if ([model.coursePayType intValue] == 1) {
        _status_lab.text = [NSString stringWithFormat:@"课程类型:付费课"];
    }else{
        _status_lab.text = [NSString stringWithFormat:@"课程类型:体验课"];
    }
}
@end
